<%@include file="/WEB-INF/pages/commons/commons.jsp"%>

<fmt:message var="title" key="register.jsp.title" />
<stripes:layout-render name="${_themePath}/basic-layout-without-navbar.jsp" _title="${title}" >

<stripes:layout-component name="_topNav">
        <H1>Login</H1>
        <UL class="gc-topnav-tabs">
            <LI>&nbsp;</LI>
        </UL>
</stripes:layout-component>

<stripes:layout-component name="_content">

    <stripes:messages />
    <stripes:errors globalErrorsOnly="true"/>


    <jsecurity:lacksPermission name="user:register:*">
        No "user:register:*" permission
    </jsecurity:lacksPermission>

    <jsecurity:hasPermission name="user:register:*">
    <stripes:form method="POST" beanclass="foo.bar.blog.web.action.general.RegisterActionBean">
        <stripes:errors globalErrorsOnly="false" />
        <table width="100%">
            <tr>
                <td><stripes:label for="user.username"/>*</td>
                <td><stripes:text name="user.username"/></td>
            </tr>
            <tr>
                <td><stripes:label for="user.email"/>*</td>
                <td><stripes:text name="user.email"/></td>
            </tr>
            <tr>
                <td><stripes:label for="user.password"/>*</td>
                <td><stripes:password name="user.password"/></td>
            </tr>
            <tr>
                <td><stripes:label for="confirmPassword"/>*</td>
                <td><stripes:password name="confirmPassword"/></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td><img src="<c:url value='/kaptcha.jpg'/>"/><stripes:text name="captcha"/></td>
            </tr>
            <tr>
                <td colspan="2"><stripes:submit name="register"><fmt:message key="register.jsp.submit"/></stripes:submit></td>
            </tr>
        </table>
    </stripes:form>
    </jsecurity:hasPermission>
   
</stripes:layout-component>
</stripes:layout-render>



